<% form_for:shop,@shop,:url=>{:action=>"update",:id=>@shop.id} do |f| %>
  <p>
    <b>User</b><br />
    <%= f.text_field :user_id %>
  </p>

  <p>
    <b>Shop name</b><br />
    <%= f.text_field :shop_name %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Status</b><br />
    <%= f.text_field :status %>
  </p>

  <p>
    <%= f.submit "确认" %>
  </p>
<% end %>
<%= link_to '返回', {:action=>"show"} %>